package tq.com.tqteacher.view;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import tq.com.tqteacher.R;

public class TQUploadFinishView extends FrameLayout {
    private TextView reupload;
    private ImageView pdf_icon;

    public TQUploadFinishView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initUI();
    }

    private void initUI(){
        LayoutInflater.from(getContext()).inflate(R.layout.view_upload_layout, this);

        reupload = findViewById(R.id.reUpload);
        pdf_icon = findViewById(R.id.pdf_icon);
    }
    public void setreuploadListener(OnClickListener pListener){
        reupload.setOnClickListener(pListener);
    }
    public void setShowPdfListener(OnClickListener pListener){
        pdf_icon.setOnClickListener(pListener);
    }
}
